package com.ruoyi.mapper;

import com.ruoyi.domain.Course;
import com.ruoyi.domain.DTO.CourseDetailDTO;
import com.ruoyi.domain.DTO.CourseWithVideoVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CourseMapper {
    int insertCourse(Course course);


//    Course selectCourseById(@Param("courseId") Integer courseId);

    /**
     * 获取课程及其关联视频信息
     * @return 课程视频联合数据列表
     */
    List<CourseWithVideoVO> selectCourseWithVideos();

//    List<CourseDetailDTO> getAllCoursesWithVideos();
}
